package com.google.android.gms.internal;

import java.io.IOException;

public final class zzji extends zzflm<zzji> {
    public String zzbdw = null;
    private zzju zzbdx = null;
    private Integer zzbdy = null;
    public zzjv zzbdz = null;
    private Integer zzbea = null;
    private Integer zzbeb = null;
    private Integer zzbec = null;
    private Integer zzbed = null;

    public zzji() {
        this.zzpvl = null;
        this.zzpnr = -1;
    }

    /* access modifiers changed from: private */
    /* renamed from: zzk */
    public final zzji zza(zzflj zzflj) throws IOException {
        zzfls zzfls;
        int i;
        while (true) {
            int zzcxx = zzflj.zzcxx();
            if (zzcxx == 0) {
                return this;
            }
            if (zzcxx != 10) {
                if (zzcxx == 18) {
                    if (this.zzbdx == null) {
                        this.zzbdx = new zzju();
                    }
                    zzfls = this.zzbdx;
                } else if (zzcxx == 24) {
                    this.zzbdy = Integer.valueOf(zzflj.zzcym());
                } else if (zzcxx == 34) {
                    if (this.zzbdz == null) {
                        this.zzbdz = new zzjv();
                    }
                    zzfls = this.zzbdz;
                } else if (zzcxx == 40) {
                    this.zzbea = Integer.valueOf(zzflj.zzcym());
                } else if (zzcxx == 48) {
                    i = zzflj.getPosition();
                    this.zzbeb = Integer.valueOf(zzjc.zzd(zzflj.zzcym()));
                } else if (zzcxx == 56) {
                    i = zzflj.getPosition();
                    this.zzbec = Integer.valueOf(zzjc.zzd(zzflj.zzcym()));
                } else if (zzcxx == 64) {
                    i = zzflj.getPosition();
                    try {
                        this.zzbed = Integer.valueOf(zzjc.zzd(zzflj.zzcym()));
                    } catch (IllegalArgumentException unused) {
                        zzflj.zzmw(i);
                        zza(zzflj, zzcxx);
                    }
                } else if (!super.zza(zzflj, zzcxx)) {
                    return this;
                }
                zzflj.zza(zzfls);
            } else {
                this.zzbdw = zzflj.readString();
            }
        }
    }

    public final void zza(zzflk zzflk) throws IOException {
        if (this.zzbdw != null) {
            zzflk.zzp(1, this.zzbdw);
        }
        if (this.zzbdx != null) {
            zzflk.zza(2, (zzfls) this.zzbdx);
        }
        if (this.zzbdy != null) {
            zzflk.zzad(3, this.zzbdy.intValue());
        }
        if (this.zzbdz != null) {
            zzflk.zza(4, (zzfls) this.zzbdz);
        }
        if (this.zzbea != null) {
            zzflk.zzad(5, this.zzbea.intValue());
        }
        if (this.zzbeb != null) {
            zzflk.zzad(6, this.zzbeb.intValue());
        }
        if (this.zzbec != null) {
            zzflk.zzad(7, this.zzbec.intValue());
        }
        if (this.zzbed != null) {
            zzflk.zzad(8, this.zzbed.intValue());
        }
        super.zza(zzflk);
    }

    /* access modifiers changed from: protected */
    public final int zzq() {
        int zzq = super.zzq();
        if (this.zzbdw != null) {
            zzq += zzflk.zzq(1, this.zzbdw);
        }
        if (this.zzbdx != null) {
            zzq += zzflk.zzb(2, (zzfls) this.zzbdx);
        }
        if (this.zzbdy != null) {
            zzq += zzflk.zzag(3, this.zzbdy.intValue());
        }
        if (this.zzbdz != null) {
            zzq += zzflk.zzb(4, (zzfls) this.zzbdz);
        }
        if (this.zzbea != null) {
            zzq += zzflk.zzag(5, this.zzbea.intValue());
        }
        if (this.zzbeb != null) {
            zzq += zzflk.zzag(6, this.zzbeb.intValue());
        }
        if (this.zzbec != null) {
            zzq += zzflk.zzag(7, this.zzbec.intValue());
        }
        return this.zzbed != null ? zzq + zzflk.zzag(8, this.zzbed.intValue()) : zzq;
    }
}
